package com.itheima.springbootenableother.config;

import com.itheima.springbootenableother.domain.Teacher;
import com.itheima.springbootenableother.domain.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {

    @Bean
    public User user() {
        return new User();
    }

    @Bean
    public Teacher teacher() {
        return new Teacher();
    }
}
